/**
 * @author LKQ
 * @date 2022/2/15 10:52
 * @description StringBuffer 代替 +
 */
public class Solution2 {
    public static void main(String[] args) {

    }
    public int maxRepeating(String sequence, String word) {
        int count = 0;
        StringBuilder sb = new StringBuilder(word);
        while(sequence.contains(sb)) {
            count++;
            sb.append(word);
        }
        return count;
    }
}
